package com.peas.platform.module.icims.base.sys.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.sys.adapter.repository.VisitRepository;
import com.peas.platform.module.icims.base.sys.adapter.repository.po.VisitPo;
import com.peas.platform.module.icims.base.sys.domain.VisitDomain;
import com.peas.platform.module.icims.base.sys.dto.VisitDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class VisitDomainImpl extends BaseDomainImpl<VisitDto, VisitPo> implements VisitDomain {

    @Resource
    private VisitRepository visitRepository;

    @Override
    public BaseRepository<VisitPo> getMapper() {
        return visitRepository;
    }

    @Override
    public Class<? extends BaseRepository<VisitPo>> getRepositoryClass() {
        return VisitRepository.class;
    }

}
